package top.dark.design.patterns.singleton;

/**
 * Author: Darkn
 * description: 饿汉式（静态常量），实例唯一，未懒加载
 * Create Time: 2021/4/21 16:40
 */
public class Singleton01 {

    private static final Singleton01 singleton = new Singleton01();
    private Singleton01(){}
    public static Singleton01 getInstance() {
        return singleton;
    }
}
